
// 导入vue
import Vue from 'vue'
// 导入入口页面
import App from './App.vue'
// 引入插件供给router和store中可能会用到某些插件的功能。
import './plugins/index'
// 导入路由
import router from './router'
// 导入Vuex
import store from './store'
// 生产环境不显示提示
Vue.config.productionTip = false
new Vue({
  router,
  store,
  beforeCreate () {
    console.log('beforeCreate')
  },
  create () {
    console.log('create')
  },
  beforeMount () {
    console.log('beforeMount')
  },
  mount () {
    console.log('mount')
  },
  beforeUpdate () {
    console.log('beforeUpdate')
  },
  update () {
    console.log('update')
  },
  beforeDestory () {
    console.log('beforeDestory')
  },
  destory () {
    console.log('destory')
  },
  render: h => h(App)
}).$mount('#app')
